package TwoDay;

import java.util.Scanner;

public class Num5 {
    public static void main(String[] args) {
        int a,b,c,res;
        Scanner scanner = new Scanner(System.in);
        System.out.printf("请输入任意三个数");
        a = scanner.nextInt();
        b = scanner.nextInt();
        c = scanner.nextInt();
        System.out.printf("从小到大输出按序输出");
        if (a>b){
            res=a;
            a=b;
            b=res;
        }
        if (a>c){
            res=a;
            a=c;
            c=res;
        }
        if (b>c){
            res=b;
            b=c;
            c=res;
        }
        System.out.println("a = " + a);
        System.out.println("b = " + b);
        System.out.println("c = " + c);
    }
}
